Optimal. Leaf size=131 \[ 3 d^2 e \log (x) \left (a+b \log \left (c x^n\right )\right )-\frac{d^3 \left (a+b \log \left (c x^n\right )\right )}{2 x^2}+\frac{3}{2} d e^2 x^2 \left (a+b \log \left (c x^n\right )\right )+\frac{1}{4} e^3 x^4 \left (a+b \log \left (c x^n\right )\right )-\frac{3}{2} b d^2 e n \log ^2(x)-\frac{b d^3 n}{4 x^2}-\frac{3}{4} b d e^2 n x^2-\frac{1}{16} b e^3 n x^4 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.124834, antiderivative size = 100, normalized size of antiderivative = 0.76, number of steps used = 7, number of rules used = 6, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.261, Rules used = {266, 43, 2334, 12, 14, 2301} \[ -\frac{1}{4} \left (-12 d^2 e \log (x)+\frac{2 d^3}{x^2}-6 d e^2 x^2-e^3 x^4\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{3}{2} b d^2 e n \log ^2(x)-\frac{b d^3 n}{4 x^2}-\frac{3}{4} b d e^2 n x^2-\frac{1}{16} b e^3 n x^4 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 266
Rule 43
Rule 2334
Rule 12
Rule 14
Rule 2301
Rubi steps
\begin{align*} \int \frac{\left (d+e x^2\right )^3 \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx &=-\frac{1}{4} \left (\frac{2 d^3}{x^2}-6 d e^2 x^2-e^3 x^4-12 d^2 e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \frac{-2 d^3+6 d e^2 x^4+e^3 x^6+12 d^2 e x^2 \log (x)}{4 x^3} \, dx\\ &=-\frac{1}{4} \left (\frac{2 d^3}{x^2}-6 d e^2 x^2-e^3 x^4-12 d^2 e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{1}{4} (b n) \int \frac{-2 d^3+6 d e^2 x^4+e^3 x^6+12 d^2 e x^2 \log (x)}{x^3} \, dx\\ &=-\frac{1}{4} \left (\frac{2 d^3}{x^2}-6 d e^2 x^2-e^3 x^4-12 d^2 e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{1}{4} (b n) \int \left (\frac{-2 d^3+6 d e^2 x^4+e^3 x^6}{x^3}+\frac{12 d^2 e \log (x)}{x}\right ) \, dx\\ &=-\frac{1}{4} \left (\frac{2 d^3}{x^2}-6 d e^2 x^2-e^3 x^4-12 d^2 e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{1}{4} (b n) \int \frac{-2 d^3+6 d e^2 x^4+e^3 x^6}{x^3} \, dx-\left (3 b d^2 e n\right ) \int \frac{\log (x)}{x} \, dx\\ &=-\frac{3}{2} b d^2 e n \log ^2(x)-\frac{1}{4} \left (\frac{2 d^3}{x^2}-6 d e^2 x^2-e^3 x^4-12 d^2 e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{1}{4} (b n) \int \left (-\frac{2 d^3}{x^3}+6 d e^2 x+e^3 x^3\right ) \, dx\\ &=-\frac{b d^3 n}{4 x^2}-\frac{3}{4} b d e^2 n x^2-\frac{1}{16} b e^3 n x^4-\frac{3}{2} b d^2 e n \log ^2(x)-\frac{1}{4} \left (\frac{2 d^3}{x^2}-6 d e^2 x^2-e^3 x^4-12 d^2 e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )\\ \end{align*}
Mathematica [A] time = 0.081901, size = 115, normalized size = 0.88 \[ \frac{1}{16} \left (\frac{24 d^2 e \left (a+b \log \left (c x^n\right )\right )^2}{b n}-\frac{8 d^3 \left (a+b \log \left (c x^n\right )\right )}{x^2}+24 d e^2 x^2 \left (a+b \log \left (c x^n\right )\right )+4 e^3 x^4 \left (a+b \log \left (c x^n\right )\right )-\frac{4 b d^3 n}{x^2}-12 b d e^2 n x^2-b e^3 n x^4\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.242, size = 604, normalized size = 4.6 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.05643, size = 180, normalized size = 1.37 \begin{align*} -\frac{1}{16} \, b e^{3} n x^{4} + \frac{1}{4} \, b e^{3} x^{4} \log \left (c x^{n}\right ) + \frac{1}{4} \, a e^{3} x^{4} - \frac{3}{4} \, b d e^{2} n x^{2} + \frac{3}{2} \, b d e^{2} x^{2} \log \left (c x^{n}\right ) + \frac{3}{2} \, a d e^{2} x^{2} + \frac{3 \, b d^{2} e \log \left (c x^{n}\right )^{2}}{2 \, n} + 3 \, a d^{2} e \log \left (x\right ) - \frac{b d^{3} n}{4 \, x^{2}} - \frac{b d^{3} \log \left (c x^{n}\right )}{2 \, x^{2}} - \frac{a d^{3}}{2 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.55742, size = 356, normalized size = 2.72 \begin{align*} \frac{24 \, b d^{2} e n x^{2} \log \left (x\right )^{2} -{\left (b e^{3} n - 4 \, a e^{3}\right )} x^{6} - 4 \, b d^{3} n - 12 \,{\left (b d e^{2} n - 2 \, a d e^{2}\right )} x^{4} - 8 \, a d^{3} + 4 \,{\left (b e^{3} x^{6} + 6 \, b d e^{2} x^{4} - 2 \, b d^{3}\right )} \log \left (c\right ) + 4 \,{\left (b e^{3} n x^{6} + 6 \, b d e^{2} n x^{4} + 12 \, b d^{2} e x^{2} \log \left (c\right ) + 12 \, a d^{2} e x^{2} - 2 \, b d^{3} n\right )} \log \left (x\right )}{16 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 9.21979, size = 209, normalized size = 1.6 \begin{align*} - \frac{a d^{3}}{2 x^{2}} + 3 a d^{2} e \log{\left (x \right )} + \frac{3 a d e^{2} x^{2}}{2} + \frac{a e^{3} x^{4}}{4} - \frac{b d^{3} n \log{\left (x \right )}}{2 x^{2}} - \frac{b d^{3} n}{4 x^{2}} - \frac{b d^{3} \log{\left (c \right )}}{2 x^{2}} + \frac{3 b d^{2} e n \log{\left (x \right )}^{2}}{2} + 3 b d^{2} e \log{\left (c \right )} \log{\left (x \right )} + \frac{3 b d e^{2} n x^{2} \log{\left (x \right )}}{2} - \frac{3 b d e^{2} n x^{2}}{4} + \frac{3 b d e^{2} x^{2} \log{\left (c \right )}}{2} + \frac{b e^{3} n x^{4} \log{\left (x \right )}}{4} - \frac{b e^{3} n x^{4}}{16} + \frac{b e^{3} x^{4} \log{\left (c \right )}}{4} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.28888, size = 216, normalized size = 1.65 \begin{align*} \frac{4 \, b n x^{6} e^{3} \log \left (x\right ) - b n x^{6} e^{3} + 4 \, b x^{6} e^{3} \log \left (c\right ) + 24 \, b d n x^{4} e^{2} \log \left (x\right ) + 24 \, b d^{2} n x^{2} e \log \left (x\right )^{2} + 4 \, a x^{6} e^{3} - 12 \, b d n x^{4} e^{2} + 24 \, b d x^{4} e^{2} \log \left (c\right ) + 48 \, b d^{2} x^{2} e \log \left (c\right ) \log \left (x\right ) + 24 \, a d x^{4} e^{2} + 48 \, a d^{2} x^{2} e \log \left (x\right ) - 8 \, b d^{3} n \log \left (x\right ) - 4 \, b d^{3} n - 8 \, b d^{3} \log \left (c\right ) - 8 \, a d^{3}}{16 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]